package cn.jly.mybatis.util;

import java.util.List;
import java.util.Map;

/**
 * @author lanyangji
 * @description 打印工具类
 * @date 2020/11/17 下午 4:54
 */
public class PrintUtils {
    private PrintUtils() {}

    public static void printList(List<?> list) {
        list.forEach(System.out::println);
    }

    public static void printMap(Map<?, ?> map) {
        for (Map.Entry<?, ?> entry : map.entrySet()) {
            System.out.println(entry.getKey() + "--->" + entry.getValue());
        }
    }
}
